﻿$.ajaxSetup({
    beforeSend: function (xhr) {
        if (localStorage.getItem("token") !== null) {
            xhr.setRequestHeader('Authorization', 'Bearer ' + localStorage.getItem("token"));
        }
    }
});